<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Utils</title>
<!--style start-->
<link href="../../style/doc.css" rel="stylesheet" type="text/css">
<!--style end-->

<!--script start-->
<!--[if lt IE 9]><script src="/common/html5/3.7.3/html5.js"></script><![endif]-->
<!--script end-->
</head>
<body class="docContent">
<h1>Utils</h1>
<section>
  <h2>依赖</h2>
  <p></p>
</section>
<section>
  <h2>简介</h2>
  <p>一些小函数集合</p>
</section>
<section>
  <h2>用法</h2>
  <article>
  	<pre></pre>
  	<pre>
&lt;script type=&quot;text/javascript&quot;&gt;
var Utils.getOrgCodeMask();
&lt;/script&gt;
	</pre>
  </article>
</section>
<section>
  <h2>属性</h2>
  <table class="table">
    <thead>
      <tr>
        <th>名称</th>
        <th>类型</th>
        <th>描述</th>
        <th>默认值</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>src</td>
        <td>string</td>
        <td>图片的src</td>
        <td>/base/vcodeImage/index.jsp</td>
      </tr>
    </tbody>
  </table>
</section>
<section>
  <h2>方法</h2>
  <table class="table">
    <thead>
      <tr>
        <th>方法名</th>
        <th>参数</th>
        <th>返回值</th>
        <th>说明</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>getOrgCodeMask()</td>
        <td>orgCode:String</td>
        <td>String</td>
        <td>获得OrgCode验证码</td>
      </tr>
      <tr>
        <td>loginCheck()</td>
        <td></td>
        <td>Boolean</td>
        <td>登录检测，每隔5000毫秒进行一次cooikes检测，来判断是否cooikes过期</td>
      </tr>
      <tr>
        <td>encodeXss()</td>
        <td>str:String</td>
        <td>String</td>
        <td>数据转码</td>
      </tr>
      <tr>
        <td>decodeXss()</td>
        <td>str:String</td>
        <td>String</td>
        <td>数据解码</td>
      </tr>
      <tr>
        <td>appendParentBodyClassName()</td>
        <td></td>
        <td></td>
        <td>添加父级页面的body class到本页面body className</td>
      </tr>
      <tr>
        <td>appendWindowNameToBodyClassName()</td>
        <td></td>
        <td></td>
        <td>添加父级页面的frame name到本页面body className</td>
      </tr>
      <tr>
        <td>moduleAutoNum()</td>
        <td></td>
        <td></td>
        <td>给当前页面class="module" 的模块添加数字序号</td>
      </tr>
      <tr>
        <td>getParentElementByTagName(tagName)</td>
        <td>tagName:String</td>
        <td>element</td>
        <td>获得低级元素来自标签名称</td>
      </tr>
      <tr>
        <td>getRequiredStr(elemnt,rule)</td>
        <td>elemnt:HTMLElement,rule:Array</td>
        <td>String</td>
        <td>获得必需的提示语</td>
      </tr>
    </tbody>
  </table>
</section>
</body>
</html>